<?php
/* @var $this AudioReviewsController */
/* @var $model AudioReviews */
/* @var $form TbActiveForm */
?>

<div class="form">

	<?php
	$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
		'id' => 'audio-reviews-form',
		// Please note: When you enable ajax validation, make sure the corresponding
		// controller action is handling ajax validation correctly.
		// There is a call to performAjaxValidation() commented in generated controller code.
		// See class documentation of CActiveForm for details on this.
		'htmlOptions' => array('enctype' => 'multipart/form-data'),
		'enableAjaxValidation' => true,
		'clientOptions' => array(
			'validateOnSubmit' => true,
		),
	));
	?>

	<?php echo $form->errorSummary($model); ?>

	<?php echo $form->textFieldControlGroup($model, 'audioName', array('span' => 5, 'maxlength' => 255)); ?>

	<?php echo $form->textFieldControlGroup($model, 'audioTitle', array('span' => 5, 'maxlength' => 255)); ?>

	<?php echo $form->fileFieldControlGroup($model, 'audioFileName'); ?>

	<div class="form-actions">
		<?php
		echo TbHtml::submitButton($model->isNewRecord ? 'Создать' : 'Сохранить', array(
			'color' => TbHtml::BUTTON_COLOR_PRIMARY,
			'size' => TbHtml::BUTTON_SIZE_LARGE,
		));
		?>
    </div>

	<?php $this->endWidget(); ?>

</div><!-- form -->